<div class="users index">
	<h2><?php __('Users');?></h2>
	<table cellpadding="0" cellspacing="0" border="1px">
	<tr>
			<th>SL<?php //echo $this->Paginator->sort('id');?></th>
<!--			<th><?php //echo $this->Paginator->sort('username');?></th>-->
			<!-- <th><?php //echo $this->Paginator->sort('password');?></th> -->
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th>Full CV View</th>
			<th>Full CV Print</th>
                        <th>Email</th>
                        <th>Mobile No</th>
			<th class="actions" style="text-align:center;"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($users as $user):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i;//echo $user['User']['id']; ?>&nbsp;</td>
<!--		<td><?php //echo $user['User']['username']; ?>&nbsp;</td>-->
		<!-- <td><?php //echo $user['User']['password']; ?>&nbsp;</td> -->
		<td><?php echo $user['User']['fullname']; ?>&nbsp;</td>
		<td><?php  echo $this->Html->link(__('Full CV View', true),
                        array('controller' => 'uinformations', 'action' => 'fullview', $user['User']['id'])); ?>&nbsp;</td>
		<td><?php  echo $this->Html->link(__('Full CV Print', true),
                        array('controller' => 'uinformations', 'action' => 'fullviewprint',
                            $user['User']['id'])); ?>&nbsp;</td>
                <td><?php echo $user['User']['username']; ?>&nbsp;</td>
                <td><?php echo $user['Uinformation']['mobile']; ?>&nbsp;</td>
		<td class="actions">

<?php
if($user['User']['accept']==0){
echo $this->Html->link(__('Accept', true), array('action' => 'accept',
    $user['User']['id']), null, sprintf(__('Are you sure you want to Accept?',
            true), $user['User']['id']));
}else{

   echo $this->Html->link(__('Reject', true), array('action' => 'reject',
    $user['User']['id']), null, sprintf(__('Are you sure you want to Accept?',
            true), $user['User']['id']));
}

?>
<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']),null, sprintf(__('Are you sure you want to delete?', true), $user['User']['id'])); ?>
                       
  		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<?php echo $this->element('leftmenu'); ?>
</div>